package com.example.shixunandjavagotoyangchen.Eternity.YeMianActivity;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.example.shixunandjavagotoyangchen.R;
public class YeMianfengzhuangActivity extends AppCompatActivity {

    Handler handler = new Handler(){
        @Override
        public void dispatchMessage(@NonNull Message msg) {
            super.dispatchMessage(msg);
            if (msg.what==8888){
                ARouter.getInstance()
                        .build("/yemian/login")
                        .withString("yemian","登录")
                        .navigation();
                finish();
            }
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ye_mianfengzhuang);

        handler.sendEmptyMessageDelayed(8888,3000);

    }
}
